/*
 * WeightedVote.java
 *
 * Copyright (C) 2014 Fabian Wenzelmann
 *
 * This file is part of stura_voting.
 *
 * stura_voting is free software: you
 * can redistribute it and/or modify it under the terms of the
 * GNU General Public License as published by the Free Software Foundation,
 * either version 3 of the License, or (at your option) any later version.
 *
 * stura_voting is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
 * Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with stura_voting.
 *
 * If not, see <http://www.gnu.org/licenses/>.
 */

package de.stura;

/**
 * A weighted voter consists of a name and the weight in the voting.
 */
public class WeightedVoter {
    /**
    * Name of the voter, i.e. Fachschaft name
    */ 
    protected String voter;
    
    /**
    * The weight of the vote.
    */
    protected int weight;
    
    /**
     * Constructor, for the meaning of the variables see attribute
     * documentation
     */ 
    public WeightedVoter(String voter, int weight) {
        this.voter = voter;
        this.weight = weight;
    }
    
    /* Getters and setters */
    
    public String getVoter() {
        return voter;
    }
    
    public int getWeight() {
        return weight;
    }
    
    public void setVoter(String voter) {
        this.voter = voter;
    }
    
    public void setWeight(int weight) {
        this.weight = weight;
    }
}
